package cn.miaopasi.boot.clickhouse.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 登录日志 实体类
 *
 * @author Administrator
 */
@Data
@Builder
public class LoginLog {

    /*** 记录ID */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /*** 应用ID */
    private String appId;

    /*** 登录日期 */
    private LocalDateTime loginDateTime;

    /*** 登录请求头 */
    private String loginHeader;

    /*** 登录IP */
    private Long ip;

    /*** 登录账号 */
    private String username;

    /*** 登录是否成功 */
    private Boolean isSuccess;

    public static final String ID = "id";
    public static final String APP_ID = "app_id";
    public static final String LOGIN_DATE_TIME = "login_date_time";
    public static final String LOGIN_HEADER = "login_header";
    public static final String IP = "ip";
    public static final String USERNAME = "username";
    public static final String IS_SUCCESS = "is_success";
}
